import Route from 'react-router/lib/Route'
import {IndexRedirect} from 'react-router';
import { WeaLocaleProvider } from 'ecCom'
const getLocaleLabel = WeaLocaleProvider.getLocaleLabel.bind(this, 'blog');

import Home from './components/Home'
import MyBlog from './components/myBlog'
import MyAttention from "./components/MyAttention/"
import AttentionWeiboList from "./components/MyAttention/AttentionWeiboList"
import RightWeibo from "./components/MyAttention/RightWeibo"
import Report from './components/Report/index'
import Setting from './components/setting'

import WeaBlogDict from './components/Component/wea-blog-dict';
import HisWeiboSingle from './components/HisWeiboSingle';
import BlogExport from './components/ExportBlog/ContentExport'
WeaBlogDict.addWindowFunc();
import './style/index'
const BlogRoute = (
  <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@3kg2ni`} name="blog" breadcrumbName="微博" onEnter={getLocaleLabel} path="blog" component={Home}>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@r4dq21`} name="myBlog" breadcrumbName="我的微博" path="myBlog" component={MyBlog}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@fm89o0`} name="comment" breadcrumbName="评论" path="comment" component={MyBlog}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@llg424`} name="zan" breadcrumbName="点赞" path="zan" component={MyBlog}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@r74250`} name="atMe" breadcrumbName="At我" path="atMe" component={MyBlog}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@qasmqq`} name="homepage" breadcrumbName="微博主页" path="homepage" component={MyBlog}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@6ggh2p`} name="remindMessage" breadcrumbName="消息" path="remindMessage" component={MyBlog}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@1urlqm`} name="myAttention" breadcrumbName="我的关注" path="myAttention" component={ MyAttention }>
        <IndexRedirect ecId={`${this && this.props && this.props.ecId || ''}_IndexRedirect@wnia31`} to="list"/>
        <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@xn74mt`} path="list" component={AttentionWeiboList}/>
        <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@rnk96v`} path="user/:userId" component={RightWeibo}/>
        <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@8f2hfk`} path="user/:userId/:tab" component={RightWeibo}/>
    </Route>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@seizw5`} name="report" breadcrumbName="微博报表" path="report" component={Report}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@5hgc72`} name="blogExport" breadcrumbName="内容导出" path="blogExport" component={BlogExport}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@5kzwyk`} name="setting" breadcrumbName="微博设置" path="setting" component={Setting}/>
  </Route>
)

import stores from './stores/index'

module.exports = {
  Route:BlogRoute,
  store:stores,
  components:{
    HisWeiboSingle
  },
}
